import request from '@/utils/request'

let homeApi = {
  // 公告列表
  getNoticeList(data) {
    return request({
      url: '/system/notice/list',
      method: 'get',
      params:data
    })
  },
  // 供货商出号统计
  subOrder(data) {
    return request({
      url: '/indexData/count/subOrder',
      method: 'get',
      params:data
    })
  },
  // 销售卖号统计
  sellOrder(data) {
    return request({
      url: '/indexData/count/sellOrder',
      method: 'get',
      params:data
    })
  },
  // 供货商账号统计
  userGameCount(data) {
    return request({
      url: '/indexData/count/userGameCount',
      method: 'get',
      params:data
    })
  },
  // 当前任务统计
  taskCount(data) {
    return request({
      url: '/indexData/count/taskCount',
      method: 'get',
      params:data
    })
  },
  // 游戏类型账号统计
  GameTypeCount(data) {
    return request({
      url: '/indexData/count/GameTypeCount',
      method: 'get',
      params:data
    })
  },
  // 获取评论记录
  getPevalu(params){
    return request({
      url: '/account/comment/list',
      method: 'get',
      params
    })
  },
  // 获取单个评论
  getonepevanlu(id){
    return request({
      url: `/account/comment/${id}`,
      method: 'get',
    })
  },
  //号商回收
  getHaoshangHuishou(params){
    return request({
      url: `/saleBacklist/info/list`,
      method: 'get',
      params
    })
  },
  //获取号商用户
  getHaoshangpeople(params){
    return request({
      url: `/system/user/userType`,
      method: 'get',
      params
    })
  },
  //删除号商
  deleteHaoshangHuishou(id){
    return request({
      url: `/saleBacklist/info/${id}`,
      method: 'delete',
    })
  },
   //新增号商
  addfneHaoshangHuishou(data){
    return request({
      url: `/saleBacklist/info`,
      method: 'post',
      data
    })
  },
  //修改号商
  editeHaoshangHuishou(data){
    return request({
      url: `/saleBacklist/info`,
      method: 'put',
      data
    })
  },
  //通过id
  getIddetail(id){
    return request({
      url: `/saleBacklist/info/${id}`,
      method: 'get'
    })
  },

  //违规记录统计
  getViolationRecord(params){
    return request({
      url: `/violationRecord/getCount`,
      method: 'get',
      params

    })
  },
}
export default homeApi

